@layout("/common/_container.html"){
<div class="ibox float-e-margins">
    <div class="ibox-content">
        <div class="form-horizontal">
            <input type="hidden" id="id" value="${item.id}">
            <input type="hidden" id="statusValue" value="${item.status}">
            <input type="hidden" id="contentVal" value='${item.content}'>
            <div class="row">
                <div class="col-sm-6 b-r">
                    <#input id="title" name="标题" underline="true" value="${item.title}"/>
                    <#input id="num" name="排序号" underline="true" value="${item.num}"/>
                    <#input id="pv" name="点击量" value="${item.pv}"/>
                </div>

                <div class="col-sm-6">
                    <#input id="itemName" name="栏目" underline="true" readonly="readonly" hidden="itemid"
                            hiddenValue="${item.itemid}" value="${itemName!}"
                            clickFun="ItemDocInfoDlg.showItemSelectTree(); return false;"
                            style="background-color: #ffffff !important;"/>
                    <#select id="status" name="状态" underline="true">
                        <option value="1">启用</option>
                        <option value="0">禁用</option>
                    </#select>
                    <#input id="uv" name="访问量" value="${item.uv}"/>
                </div>
            </div>

            <!-- 这是栏目选择的下拉框 -->
            <div id="menuContent" class="menuContent" style="display: none; position: absolute; z-index: 200;">
                <ul id="treeDemo" class="ztree tree-box" style="width: 249px !important;"></ul>
            </div>

            <div class="row">
                <div class="col-sm-12">
                    <#Img id="photo" name="图片" col="9" width="600" value="${item.photo}"/>
                </div>
            </div>
            <div class="row">
                <div class="col-sm-12">
                    <div class="form-group">
                        <label class="col-sm-1 control-label">内容</label>
                        <div class="col-sm-11">
                            <div id="editor" class="editorHeight">
                            </div>
                        </div>
                    </div>
                </div>
            </div>

            <div class="row btn-group-m-t">
                <div class="col-sm-10">
                    <#button btnCss="info" name="提交" id="ensure" icon="fa-check" clickFun="ItemDocInfoDlg.editSubmit()"/>
                    <#button btnCss="danger" name="取消" id="cancel" icon="fa-eraser" clickFun="ItemDocInfoDlg.close()"/>
                </div>
            </div>
        </div>

    </div>
</div>
<script type="text/javascript" src="${ctxPath}/static/js/plugins/wangEditor/wangEditor.min.js"></script>
<script src="${ctxPath}/static/modular/hw/itemDoc/itemDoc_info.js"></script>
@}
